<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单电商首页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        header {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            text-align: center;
        }
        nav {
            background-color: #333;
            overflow: hidden;
        }
        nav a {
            float: left;
            display: block;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }
        nav a:hover {
            background-color: #ddd;
            color: black;
        }
        .container {
            width: 80%;
            margin: 20px auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        .product {
            background-color: white;
            border: 1px solid #ddd;
            margin-bottom: 20px;
            width: calc(33.333% - 10px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .product img {
            width: 100%;
            height: auto;
        }
        .product-info {
            padding: 10px;
        }
        .product-info h3 {
            margin: 0;
            font-size: 16px;
        }
        .product-info p {
            margin: 5px 0;
            font-size: 14px;
            color: #666;
        }
        .product-info button {
            background-color: #4CAF50;
            color: white;
            border: none;
            padding: 5px 10px;
            cursor: pointer;
        }
        .product-info button:hover {
            background-color: #45a049;
        }
        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px 0;
            position: fixed;
            width: 100%;
            bottom: 0;
        }
    </style>
</head>
<body>
    <header>
        <h1>简单电商平台</h1>
    </header>
    <nav>
        <a href="#">首页</a>
        <a href="#">产品分类</a>
        <a href="/login.html">登录</a>
        <a href="/register.html">注册</a>
    </nav>
    <div class="container">
        <div class="product">
            <img src="/image/1.png" alt="产品1">
            <div class="product-info">
                <h3>产品1</h3>
                <p>这是产品1的描述信息</p>
                <button>加入购物车</button>
            </div>
        </div>
        <div class="product">
            <img src="/image/2.png" alt="产品2">
            <div class="product-info">
                <h3>产品2</h3>
                <p>这是产品2的描述信息</p>
                <button>加入购物车</button>
            </div>
        </div>
        <div class="product">
            <img src="/image/3.png" alt="产品3">
            <div class="product-info">
                <h3>产品3</h3>
                <p>这是产品3的描述信息</p>
                <button>加入购物车</button>
            </div>
        </div>
        <!-- 可以继续添加更多产品 -->
    </div>
    <footer>
        <p>版权所有 &copy; 2025 简单电商平台</p>
    </footer>
</body>
</html>